import Vue from "vue"
import VueRouter from 'vue-router'
Vue.use(VueRouter)
//防止路径跳转报错
const originalPush = VueRouter.prototype.push
const originalReplace = VueRouter.prototype.replace
// push
VueRouter.prototype.push = function push(location, onResolve, onReject) {
	if (onResolve || onReject)
		return originalPush.call(this, location, onResolve, onReject)
	return originalPush.call(this, location).catch(err => err)
}
//replace
VueRouter.prototype.replace = function push(location, onResolve, onReject) {
	if (onResolve || onReject)
		return originalReplace.call(this, location, onResolve, onReject)
	return originalReplace.call(this, location).catch(err => err)
}
let routes = [
	//首页    
	{
		path: '/home',
		name: 'home',
		component: () => import('../view/home/HomeView.vue'),
		//判断是否需要底部栏
		meta: {
			tabbrashow: false
		}
	},
	//公告页面
	{
		path: '/not',
		name: 'not',
		component: () => import('../components/Home/Notice/NoticeTwo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//公告(商会)
	{
		path: '/nothree',
		name: 'nothree',
		component: () => import('../components/Home/Notice/NoticeThree.vue'),
		meta: {
			tabbrashow: true
		}
	},
	// 公告(商会详情)   
	{
		path: '/notdetails',
		name: 'notdetails',
		component: () => import('../components/Home/Notice/NoticeDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//招聘(二级)
	{
		path: '/recruitTwo',
		name: 'recruitTwo',
		component: () => import('../components/Home/recruit/RecruitTwo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	// 招聘详情(三级)
	{
		path: '/recruitThree',
		name: 'recruitThree',
		component: () => import('../components/Home/recruit/RecruitThree.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//新闻二级
	{
		path: '/newstwo',
		name: 'newstwo',
		component: () => import('../components/Home/news/NewsTwo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//新闻三级
	{
		path: '/newsthree',
		name: 'newsthree',
		component: () => import('../components/Home/news/NewsThree.vue'),
		children: [
			//国内新闻
			{
				path: 'newsfour',
				name: 'newsfour',
				component: () => import('../components/Home/news/NewsFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//国际新闻
			{
				path: 'newsfive',
				name: 'newsfive',
				component: () => import('../components/Home/news/NewsFive.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//新闻详情
			{
				path: 'newsdetail',
				name: 'newsdetail',
				component: () => import('../components/Home/news/NewDetail.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//商会新闻二级
			{
				path: 'newTitle',
				name: 'newTitle',
				component: () => import('../components/Home/news/NewTitle.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//商会新闻详情
			{
				path: 'shangDetail',
				name: 'shangDetail',
				component: () => import('../components/Home/news/ShangDetail.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//访谈中的媒体
	{
		path: '/medinm',
		name: 'medinm',
		component: () => import('../components/Home/inter/MedinmPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//访谈二级
	{
		path: '/intertwo',
		name: 'intertwo',
		component: () => import('../components/Home/inter/InterTwo.vue'),
		children: [
			//访谈三级
			{
				path: 'interthree',
				name: 'interthree',
				component: () => import('../components/Home/inter/InterThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//访谈详情
			{
				path: 'interdetail',
				name: 'interdetail',
				component: () => import('../components/Home/inter/InterDetails.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//讲座二级
	{
		path: '/lecturetwo',
		name: 'lecturetwo',
		component: () => import('../components/Home/lecture/LectureTwo.vue'),
		children: [
			//讲座三级
			{
				path: 'lecturethree',
				name: 'lecturethree',
				component: () => import('../components/Home/lecture/LectureThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//讲座详情
			{
				path: 'lecturefour',
				name: 'lecturefour',
				component: () => import('../components/Home/lecture/LectureFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//讲座详情
			{
				path: 'LectureFive',
				name: 'LectureFive',
				component: () => import('../components/Home/lecture/LectureFive.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//客服二级
	{
		path: '/welfaretwo',
		name: 'welfaretwo',
		component: () => import('../components/Home/welfare/WelfareTwo.vue'),
		children: [
			//客服三级
			{
				path: 'welfarethree',
				name: 'welfarethree',
				component: () => import('../components/Home/welfare/WelfareThree.vue'),
				meta: {
					tabbrashow: true
				}
			},

		],
		meta: {
			tabbrashow: true
		}
	},
	//商会入驻二级 
	{
		path: '/settle',
		name: '/settle',
		component: () => import('../components/Home/settle/SettleTwo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商会待遇二级   
	{
		path: '/treatmentwo',
		name: '/treatmentwo',
		component: () => import('../components/Home/treatment/TreatmenTwo.vue'),
		children: [
			//商会待遇三级
			{
				path: 'treatmenthree',
				name: 'treatmenthree',
				component: () => import('../components/Home/treatment/TreatmenThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//商会待遇四级
	{
		path: '/treatmenfour',
		name: 'treatmentfour',
		component: () => import('../components/Home/treatment/TreatmenFour.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商会会员二级
	{
		path: '/member',
		name: 'member',
		component: () => import('../components/Home/member/MemberPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//各省商会二级         
	{
		path: '/chambertwo',
		name: 'chambertwo',
		component: () => import('../components/Home/chambe/ChambeTwo.vue'),
		children: [
			//各省商会三级
			{
				path: 'chamberthree',
				name: 'chamberthree',
				component: () => import('../components/Home/chambe/ChambeThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//各省商会四级
			{
				path: 'chamberfour',
				name: 'chamberfour',
				component: () => import('../components/Home/chambe/ChambeFour.vue'),
				meta: {
					tabbrashow: true
				}
			},

		],
		meta: {
			tabbrashow: true
		}
	},
	//各省商会五级
	{
		path: '/chamberfive',
		name: 'chamberfive',
		component: () => import('../components/Home/chambe/ChambeFive.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//各省商会六级
	{
		path: '/chambersix',
		name: 'chambersix',
		component: () => import('../components/Home/chambe/ChambeSix.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//各省商会(全国各省)
	{
		path: '/chamberprovince',
		name: 'chamberprovince',
		component: () => import('../components/Home/chambe/ChambeProvince.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//人才库二级 
	{
		path: '/persontwo',
		name: '/persontwo',
		component: () => import('../components/Home/person/PersonTwo.vue'),
		children: [
			//人才库三级
			{
				path: 'personthree',
				name: 'personthree',
				component: () => import('../components/Home/person/PersonThree.vue'),
				meta: {
					tabbrashow: true
				}
			},


		],
		meta: {
			tabbrashow: true
		}
	},
	//人才库(人才储备登记)
	{
		path: '/personfour',
		name: 'personfour',
		component: () => import('../components/Home/person/PersonFour.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//人才库(人才储备登记须知)
	{
		path: '/personfive',
		name: 'personfive',
		component: () => import('../components/Home/person/PersonFive.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//人才一级(用人单位)    
	{

		path: '/personOne',
		name: '/personOne',
		component: () => import('../components/Home/person/PersonOne.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//人才一级(各省人才)
	{
		path: '/personsix',
		name: '/personsix',
		component: () => import('../components/Home/person/PersonSix.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//各省人才(人才库)
	{
		path: '/person',
		name: '/person',
		component: () => import('../components/Home/person/PerSon.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//各省人才(人才库的分类)
	{
		path: '/personclass',
		name: '/personclass',
		component: () => import('../components/Home/person/PersonClass.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//各省人才(人才库的详情)
	{
		path: '/persondetails',
		name: '/persondetails',
		component: () => import('../components/Home/person/PersonDeails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//人才一级(人才储备)   
	{
		path: '/personmin',
		name: '/personmin',
		component: () => import('../components/Home/person/PersonMin.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//大项目    
	{
		path: '/large',
		name: '/large',
		component: () => import('../components/Home/large/LargePage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//大项目(商会推荐项目列表)    
	{
		path: '/largelist',
		name: '/largelist',
		component: () => import('../components/Home/large/LargList.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//大项目(商会推荐项目详情)    
	{
		path: '/largedetails',
		name: '/largedetails',
		component: () => import('../components/Home/large/LargDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//大项目(全国各省)    
	{
		path: '/largenation',
		name: '/largenation',
		component: () => import('../components/Home/large/LargeNation.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//大项目(小程序页面)    
	{
		path: '/largeapplet',
		name: '/largeapplet',
		component: () => import('../components/Home/large/LargaLet.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//新产品
	{
		path: '/product',
		name: '/product',
		component: () => import('../components/Home/product/ProductPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//新产品(分类)
	{
		path: '/productclass',
		name: '/productclass',
		component: () => import('../components/Home/product/ProductClass.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//新产品(列表)
	{
		path: '/productlist',
		name: '/productlist',
		component: () => import('../components/Home/product/ProductList.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//新产品(详情)
	{
		path: '/productdetails',
		name: '/productdetails',
		component: () => import('../components/Home/product/ProductDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商企库 
	{
		path: '/commpage',
		name: '/commpage',
		component: () => import('../components/Home/shangqiku/ShangPage.vue'),
		// children: [
		//   //商企库(共享名单须知) 
		//   {
		//     path: 'shangtwo',
		//     name: 'shangtwo',
		//     component: () => import('../components/Home/shangqiku/ShangTwo.vue'),
		//     meta: {
		//       tabbrashow: true
		//     }
		//   },
		// ],
		meta: {
			tabbrashow: true
		}
	},
	//商企库(各行业名单) 
	{
		path: '/shangthree',
		name: 'shangthree',
		component: () => import('../components/Home/shangqiku/ShangThree.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商企库(各省企业名单) 
	{
		path: '/shangfour',
		name: 'shangfour',
		component: () => import('../components/Home/shangqiku/ShangFour.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商企库的省份    
	{
		path: '/shangsix',
		name: '/shangsix',
		component: () => import('../components/Home/shangqiku/ShangSix.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商企库的新增页面
	{
		path: '/shangnew',
		name: '/shangnew',
		component: () => import('../components/Home/shangqiku/ShangNew.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//美酒+咖啡(二级)    
	{
		path: '/coffeetwo',
		name: '/coffeetwo',
		component: () => import('../components/Home/coffee/CoffeeTwo.vue'),
		children: [
			//美酒+咖啡(三级介绍)
			{
				path: 'coffeethree',
				name: 'coffeethree',
				component: () => import('../components/Home/coffee/CoffeeThree.vue'),
				meta: {
					tabbrashow: true
				}
			},

		],
		meta: {
			tabbrashow: true
		}
	},
	//美酒+咖啡(文化教育)    
	{
		path: '/coffeefive',
		name: '/coffeefive',
		component: () => import('../components/Home/coffee/CoffeeFive.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//美酒+咖啡(感恩教育)       
	{
		path: '/coffeesix',
		name: '/coffeesix',
		component: () => import('../components/Home/coffee/CoffeeSix.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//美酒+咖啡(感恩教育视频图片)    
	{
		path: '/coffeevideo',
		name: '/coffeevideo',
		component: () => import('../components/Home/coffee/VideoPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//美酒+咖啡(感恩教育视频)    
	{
		path: '/video',
		name: '/video',
		component: () => import('../components/Home/coffee/CoffeeVide.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//1.美酒+咖啡(美酒+咖啡礼盒”定制项目)
	{
		path: '/coffeefour',
		name: 'coffeefour',
		component: () => import('../components/Home/coffee/CoffeeFour.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//1.美酒+咖啡(定制项目)
	{
		path: '/wincoffee',
		name: '/wincoffee',
		component: () => import('../components/Home/wincoffee/WinCoffee.vue'),
		children: [
			//定制项目(产品选择)
			{
				path: 'wincoffeetwo',
				name: 'wincoffeetwo',
				component: () => import('../components/Home/wincoffee/WincoffeeTwo.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//项目简介(白酒)
			{
				path: 'baijiu',
				name: 'baijiu',
				component: () => import('../components/Home/wincoffee/BaiJiu.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//项目简介(果酒)
			{
				path: 'fruwine',
				name: 'fruwine',
				component: () => import('../components/Home/wincoffee/FruWine.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//项目简介(红酒)
			{
				path: 'redcoffee',
				name: 'redcoffee',
				component: () => import('../components/Home/wincoffee/RedWine.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//项目简介(咖啡)
			{
				path: 'coffeeproduct',
				name: 'coffeeproduct',
				component: () => import('../components/Home/wincoffee/CoffeeProduct.vue'),
				meta: {
					tabbrashow: true
				}
			},

			//运营模式
			{
				path: 'wincoffeethree',
				name: 'wincoffeethree',
				component: () => import('../components/Home/wincoffee/WincoffeeThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//定制项目
			{
				path: 'wincoffeefour',
				name: 'wincoffeefour',
				component: () => import('../components/Home/wincoffee/WincoffeeFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//诚邀全国城市合伙人
			{
				path: 'wincoffeefive',
				name: 'wincoffeefive',
				component: () => import('../components/Home/wincoffee/WincoffeeFive.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//礼盒定制方案
			{
				path: 'tasting',
				name: 'tasting',
				component: () => import('../components/Home/coffee/ChainPro/Tasting/TastingOne.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//礼盒定制方案的详情
			{
				path: 'tastingthree',
				name: 'tastingthree',
				component: () => import('../components/Home/coffee/ChainPro/Tasting/ChildreThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//2.美酒+咖啡(美酒+咖啡品鉴馆项目)      
	// {
	// 	path: '/tasting',
	// 	name: 'tasting',
	// 	component: () => import('../components/Home/coffee/ChainPro/Tasting/TastingOne.vue'),
	// 	meta: {
	// 		tabbrashow: true
	// 	}
	// },
	//2.美酒+咖啡(美酒+咖啡品鉴馆项目二级页)   
	{
		path: '/tastingtwo',
		name: 'tastingtwo',
		component: () => import('../components/Home/coffee/ChainPro/Tasting/TastingTwo.vue'),
		children: [

			//运营模式   
			{
				path: 'tastingfour',
				name: 'tastingfour',
				component: () => import('../components/Home/coffee/ChainPro/Tasting/ChildreFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国城市
			{
				path: 'tastingfive',
				name: 'tastingfive',
				component: () => import('../components/Home/coffee/ChainPro/Tasting/ChildreFive.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//3.美酒+咖啡(“美酒+咖啡品鉴馆”连锁项目)
	{
		path: '/chainpro',
		name: 'chainpro',
		component: () => import('../components/Home/coffee/ChainPro/ChainPro.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//3.“美酒+咖啡品鉴馆”连锁项目(二级页)
	{
		path: '/chainmidwifery',
		name: 'chainmidwifery',
		component: () => import('../components/Home/coffee/ChainPro/ChainMidwifery.vue'),
		children: [
			//项目简介
			{
				path: 'chainprone',
				name: 'chainprone',
				component: () => import('../components/Home/coffee/ChainPro/china/ChinaProne.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//运营模式
			{
				path: 'chinaperate',
				name: 'chinaperate',
				component: () => import('../components/Home/coffee/ChainPro/china/ChinaPerate.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国连锁点导航图
			{
				path: 'chainaddress',
				name: 'chainaddress',
				component: () => import('../components/Home/coffee/ChainPro/china/ChainAddress.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国城市合伙人
			{
				path: 'chainpartner',
				name: 'chainpartner',
				component: () => import('../components/Home/coffee/ChainPro/china/ChinaPartner.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//4.美酒+咖啡(“美酒+咖啡智能柜”项目)
	{
		path: '/smat',
		name: 'smat',
		component: () => import('../components/Home/coffee/ChainPro/smafour/SmaPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//4.美酒+咖啡(“美酒+咖啡智能柜”项目二级页)
	{
		path: '/smatfather',
		name: 'smatfather',
		component: () => import('../components/Home/coffee/ChainPro/smafour/SmaFather.vue'),
		children: [
			//项目简介
			{
				path: 'smatwo',
				name: 'smatwo',
				component: () => import('../components/Home/coffee/ChainPro/smafour/SmaTwo.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//运营模式
			{
				path: 'smathree',
				name: 'smathree',
				component: () => import('../components/Home/coffee/ChainPro/smafour/SmaThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//诚邀合伙人
			{
				path: 'smafour',
				name: 'smafour',
				component: () => import('../components/Home/coffee/ChainPro/smafour/SmaFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//5.美酒+咖啡(“美酒+咖啡酒店”连锁项目")
	{
		path: '/hotel',
		name: 'hotel',
		component: () => import('../components/Home/coffee/ChainPro/hotel/HotelPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//5.美酒+咖啡(“美酒+咖啡酒店”连锁项目二级页")
	{
		path: '/hotelfather',
		name: 'hotelfather',
		component: () => import('../components/Home/coffee/ChainPro/hotel/HotelFather.vue'),
		children: [
			//项目简介
			{
				path: 'hotelone',
				name: 'hotelone',
				component: () => import('../components/Home/coffee/ChainPro/hotel/HotelOne.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//运营模式
			{
				path: 'hoteltwo',
				name: 'hoteltwo',
				component: () => import('../components/Home/coffee/ChainPro/hotel/HotelTwo.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国导航图
			{
				path: 'hotelthree',
				name: 'hotelthree',
				component: () => import('../components/Home/coffee/ChainPro/hotel/HotelThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国合伙人
			{
				path: 'hotelfour',
				name: 'hotelfour',
				component: () => import('../components/Home/coffee/ChainPro/hotel/HotelFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//6.美酒+咖啡(“美酒+咖啡餐饮”连锁项目)
	{
		path: '/restaupage',
		name: 'restaupage',
		component: () => import('../components/Home/coffee/ChainPro/restaurant/RestaurantPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//6.美酒+咖啡(“美酒+咖啡餐饮”连锁项目之二级)
	{
		path: '/restfather',
		name: 'restfather',
		component: () => import('../components/Home/coffee/ChainPro/restaurant/RestaFather.vue'),
		children: [
			//项目简介
			{
				path: 'resone',
				name: 'resone',
				component: () => import('../components/Home/coffee/ChainPro/restaurant/RestaOne.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//运营模式
			{
				path: 'restwo',
				name: 'restwo',
				component: () => import('../components/Home/coffee/ChainPro/restaurant/RestaTwo.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国连锁导航图
			{
				path: 'resthree',
				name: 'resthree',
				component: () => import('../components/Home/coffee/ChainPro/restaurant/RestaThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国城市合伙人
			{
				path: 'resfour',
				name: 'resfour',
				component: () => import('../components/Home/coffee/ChainPro/restaurant/RestaFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//7.新增的美酒加咖啡页面
	{
		path: '/coffeenew',
		name: 'coffeenew',
		component: () => import('../components/Home/coffee/ChainPro/coffeenew/CoffeeNew.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//7.新增的美酒加咖啡页面(二级页面)
	{
		path: '/coffeefather',
		name: 'coffeefather',
		component: () => import('../components/Home/coffee/ChainPro/coffeenew/NewFather.vue'),
		children: [
			//产品简介
			{
				path: 'newone',
				name: 'newone',
				component: () => import('../components/Home/coffee/ChainPro/coffeenew/NewOne.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//运营模式
			{
				path: 'newtwo',
				name: 'newtwo',
				component: () => import('../components/Home/coffee/ChainPro/coffeenew/NewTwo.vue'),
				meta: {
					tabbrashow: true
				}
			},
			// 全国连锁点导航图 
			{
				path: 'newthree',
				name: 'newthree',
				component: () => import('../components/Home/coffee/ChainPro/coffeenew/NewThree.vue'),
				meta: {
					tabbrashow: true
				}
			},
			//全国城市合伙人
			{
				path: 'newfour',
				name: 'newfour',
				component: () => import('../components/Home/coffee/ChainPro/coffeenew/NewFour.vue'),
				meta: {
					tabbrashow: true
				}
			},
		],
		meta: {
			tabbrashow: true
		}
	},
	//生命篇二级
	{
		path: '/lifttwo',
		name: '/lifttwo',
		component: () => import('../components/Home/lift/LiftTwo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//生命篇三级
	{
		path: '/liftthree',
		name: '/liftthree',
		component: () => import('../components/Home/lift/LiftThree.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//教育
	{
		path: '/ducation',
		name: '/ducation',
		component: () => import('../components/Home/free/ducation/DucationPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//医疗
	{
		path: '/treatment',
		name: '/treatment',
		component: () => import('../components/Home/free/treatment/TreatmentPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商企秘书
	{
		path: '/business',
		name: '/business',
		component: () => import('../components/Home/business/BusinessPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商企秘书详情
	{
		path: '/businessDetails',
		name: 'businessDetails',
		component: () => import('../components/Home/business/businessDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//婚介
	{
		path: '/genciesnt',
		name: '/gencies',
		component: () => import('../components/Home/free/agencies/GenciesPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//法务
	{
		path: '/legal',
		name: '/legal',
		component: () => import('../components/Home/free/legal/legalPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构
	{
		path: '/resident',
		name: '/resident',
		component: () => import('../components/Home/meeting/MeetingPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构(驻会机构申请须知)
	{
		path: '/attendees',
		name: '/attendees',
		component: () => import('../components/Home/meeting/AttendPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构(新闻单位)
	{
		path: '/mettingone',
		name: '/mettingone',
		component: () => import('../components/Home/meeting/MeetingOne.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构(新闻单位详情)
	{
		path: '/mediadetails',
		name: '/mediadetails',
		component: () => import('../components/Home/meeting/Mediadetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构(宾馆酒店)     
	{
		path: '/mettingtwo',
		name: '/mettingtwo',
		component: () => import('../components/Home/meeting/MeetingTwo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构(时装模特)
	{
		path: '/mettingthree',
		name: '/mettingthree',
		component: () => import('../components/Home/meeting/MeetingThree.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构(广告公司)
	{
		path: '/mettingfour',
		name: '/mettingfour',
		component: () => import('../components/Home/meeting/MeetingFour.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//驻会机构(保险公司)
	{
		path: '/mettingfive',
		name: '/mettingfive',
		component: () => import('../components/Home/meeting/MeetingFive.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机
	{
		path: '/class',
		name: 'class',
		component: () => import('../view/class/ClassVIew.vue'),
		meta: {
			tabbrashow: false
		}
	},
	//商机(中国各省名茶招商)
	{
		path: '/businessone',
		name: 'businessone',
		component: () => import('../view/class/business/BusinessOne.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机 详情
	{
		path: '/businessdetail',
		name: 'businessdetail',
		component: () => import('../view/class/business/detail.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机(中国各省名茶详情)
	{
		path: '/teadetails',
		name: 'teadetails',
		component: () => import('../view/class/business/TeaDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机(福建省名茶招商)
	{
		path: '/businesstwo',
		name: 'businesstwo',
		component: () => import('../view/class/business/BusinessTwo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机(全国明星代言招商商)
	{
		path: '/businessthree',
		name: 'businessthree',
		component: () => import('../view/class/business/BusinessThree.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机(全球免费旅游招商)
	{
		path: '/businessfour',
		name: 'businessfour',
		component: () => import('../view/class/business/BusinessFour.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机(全国手机靓号)
	{
		path: '/businessfive',
		name: 'businessfive',
		component: () => import('../view/class/business/BusinessFive.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//商机(名酒的标题)
	{
		path: '/businesswine',
		name: 'businesswine',
		component: () => import('../view/class/business/BusinessFive.vue'),
		meta: {
			tabbrashow: true
		}
	},

	//商城
	{
		path: '/good',
		name: 'good',
		component: () => import('../view/goodlist/GoodList.vue'),
		meta: {
			tabbrashow: false
		}
	},
	//消息     
	{
		path: '/broadcast',
		name: 'broadcast',
		component: () => import('../view/broadcast/BroadCast.vue'),
		meta: {
			tabbrashow: false
		}
	},
	//消息(详情)     
	{
		path: '/legalaffairs',
		name: 'legalaffairs',
		component: () => import('../components/message/LegalPage.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//消息(视频)     
	{
		path: '/messagevideo',
		name: 'messagevideo',
		component: () => import('../components/message/MessageVideo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//消息(详情)     
	{
		path: '/messagdetails',
		name: 'messagdetails',
		component: () => import('../components/message/MessageDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//我的
	{
		path: '/my',
		name: 'my',
		component: () => import('../view/my/MyView.vue'),
		meta: {
			tabbrashow: false
		}
	},
	//我的(领导关怀)
	{
		path: '/leader',
		name: 'leader',
		component: () => import('../view/my/brief/BeaderView.vue'),
		// 路由独享守卫
		// beforeEnter: (to, from, next) => {
		// 	if (to.query.pass) {
		// 		if (to.query.interiorpassword) {
		// 			next()
		// 		} else {
		// 			let t = to.query.i
		// 			// console.log("to.query.i", to.query.i);
		// 			next('/twologin?title=' + t + '&redirect=' + to.path)
		// 		}
		// 	} else {
		// 		next()
		// 	}

		// },

		meta: {
			tabbrashow: true
		}
	},
	//我的(列表的)
	{
		path: '/brief',
		name: 'brief',
		component: () => import('../view/my/brief/BriefOne.vue'),
		beforeEnter: (to, from, next) => {
			if (to.query.pass) {
				if (to.query.interiorpassword) {
					next()
				} else {
					let t = to.query.id
					let ti = to.query.title
					let num = to.query.num
					next('/twologin?id=' + t + '&title=' + ti + '&num=' + num + '&redirect=' + to.path)
				}
			}
			else {
				next()
			}

		},
		meta: {
			tabbrashow: true
		}
	},

	//我的(商会小程序)
	{
		path: '/chambermin',
		name: 'chambermin',
		component: () => import('../components/my/ChamberMin.vue'),
		beforeEnter: (to, from, next) => {
			// if (to.query.pass) {
			// 	if (to.query.interiorpassword) {
			// 		next()
			// 	} else {
			// 		let t = to.query.i
			// 		// console.log("to.query.i", to.query.i);
			// 		next('/login?title=' + t + '&redirect=' + to.path)
			// 	}
			// } 
			// else {
			// 	next()
			// }
			if (sessionStorage.getItem("token")) {
				next()
			} else {
				next('/login?' + '&redirect=' + to.path)

			}
		},
		meta: {
			tabbrashow: true
		}
	},
	// 共享平牌LOGO详情
	{
		path: '/brandDetails',
		name: 'brandDetails',
		component: () => import('../view/my/brief/brandDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//我的(共享品牌)
	{
		path: '/shareclass',
		name: 'shareclass',
		component: () => import('../components/my/share/ShareClass.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//我的(共享品牌分类)
	{
		path: '/sharedetails',
		name: 'sharedetails',
		component: () => import('../components/my/share/ShareDetails.vue'),
		meta: {
			tabbrashow: true
		}
	},
	//我的内部登录
	{
		path: '/twologin',
		name: 'twologin',
		component: () => import('../view/login/TwoLogin.vue'),
		meta: {
			tabbrashow: false
		}
	},
	//3820战略合作
	{
		path: '/strategy',
		name: 'strategy',
		component: () => import('../components/my/StrPage.vue'),
		// 路由独享守卫
		beforeEnter: (to, from, next) => {
			// if (sessionStorage.getItem("interpass")) {
			// 	next()
			// } else {
			// 	let t = Vue.prototype.getUrlParams(to.fullPath)
			// 	next('/twologin?title=' + t.i + '&redirect=' + to.path)
			// }

			if (to.query.pass) {
				if (to.query.interiorpassword) {
					next()
				} else {
					let t = to.query.id
					let ti = to.query.title
					let num = to.query.num
					next('/twologin?id=' + t + '&title=' + ti + '&num=' + num + '&redirect=' + to.path)
				}
			}
			else {
				next()
			}

		},
		meta: {
			tabbrashow: true
		}
	},
	//我的(3820运营总案的详情)
	{
		path: '/coffeedetails',
		name: 'coffeedetails',
		component: () => import('../components/my/CoffeeDatails.vue'),


		meta: {
			tabbrashow: true
		}
	},
	//项目合作方案
	{
		path: '/strview',
		name: 'strview',
		component: () => import('../components/my/StraTegy.vue'),
		// 路由独享守卫
		beforeEnter: (to, from, next) => {
			// console.log("路由独享守卫");
			if (sessionStorage.getItem("interpass")) {
				next()
			} else {
				let t = Vue.prototype.getUrlParams(to.fullPath)
				next('/twologin?title=' + t.i)
			}
		},
		meta: {
			tabbrashow: true
		}
	},
	//云商盟推广方案
	{
		path: '/promotionw',
		name: 'promotion',
		component: () => import('../components/my/PromoTion.vue'),
		// 路由独享守卫
		beforeEnter: (to, from, next) => {
			if (to.query.pass) {
				let t = to.query.id
				let ti = to.query.title
				next('/twologin?id=' + t + '&title=' + ti + '&redirect=' + to.path)

			}
			else {
				next()
			}

		},
		meta: {
			tabbrashow: true
		}
	},
	//营销典案参考
	{
		path: '/potential',
		name: 'potential',
		component: () => import('../components/my/PotenTial.vue'),
		// 路由独享守卫
		beforeEnter: (to, from, next) => {
			// console.log("路由独享守卫");

			if (to.query.pass) {
				if (to.query.interiorpassword) {
					next()
				} else {
					let t = to.query.id
					let ti = to.query.title
					next('/twologin?id=' + t + '&title=' + ti + '&redirect=' + to.path)
				}
			} else {
				next()
			}
		},
		meta: {
			tabbrashow: true
		}
	},

	//营销典案参考视频
	{
		path: '/markvideo',
		name: 'markvideo',
		component: () => import('../components/my/MarkVideo.vue'),
		meta: {
			tabbrashow: true
		}
	},
	// 登录
	{
		path: '/login',
		name: 'login',
		component: () => import('../view/login/LoginView.vue'),
		beforeEnter: (to, from, next) => {
			if (to.query.pass) {
				if (to.query.interiorpassword) {
					next()
				} else {
					let t = to.query.id
					let ti = to.query.title
					let num = to.query.num
					next('/login?id=' + t + '&title=' + ti + '&num=' + num + '&redirect=' + to.path)
				}
			}
			else {
				next()
			}

		},
		meta: {
			tabbrashow: false
		}
	},
	// 注册
	{
		path: '/register',
		name: 'register',
		component: () => import('../view/register/index.vue'),
		meta: {
			tabbrashow: false
		}
	},
	// 修改密码
	{
		path: '/resetpassword',
		name: 'resetpassword',
		component: () => import('../view/login/resetPassWord.vue'),
		meta: {
			tabbrashow: false
		}
	},
	// 用户详情
	{
		path: '/userinfo',
		name: 'userinfo',
		component: () => import('../view/my/userInfo.vue'),
		meta: {
			tabbrashow: false
		}
	},
	// 小程序
	{
		path: '/applet',
		name: 'applet',
		component: () => import('../view/class/applet.vue'),
		meta: {
			tabbrashow: false
		}
	},
	// 商机-升级中
	{
		path: '/upgrading',
		name: 'upgrading',
		component: () => import('../view/class/Upgrading.vue'),
		meta: {
			tabbrashow: false
		}
	},


	//重定向
	{
		path: '/',
		redirect: "/home"
	},
	//  404页面 
	{
		path: '*',
		component: () => import('../view/not/NotView.vue'),
	}

]

const router = new VueRouter({
	mode: 'hash',
	base: process.env.BASE_URL,
	routes,

})
//全局守卫的路由
router.beforeEach((to, from, next) => {
	if (to.path == '/welfaretwo/welfarethree' || to.path == '/person' || to.path == '/personfour' || to.path == '/personsix' || to.path == '/ducation' || to.path == '/treatment' || to.path == '/business' || to.path == '/genciesnt' || to.path == '/legal' || to.path == '/resident') {
		if (sessionStorage.getItem('token')) {
			next()
		} else {
			next("/login")

		}
	} else {
		next()
	}

})

export default router
